import http from "./request"; //记得引入进来

class StudentService extends http {
  constructor() {
    super();
    this.baseUrl = "/student"
  }

  // 获取老师信息
  getStudentInfo(body) {
    return this.http({
      method: "get",
      url: "/getStudentInfo",
      body
    }, {
      loading: true
    });
  }

  // 更新老师信息
  updateStudentInfo(body) {
    return this.http({
      method: "post",
      url: "/updateStudentInfo",
      body,
      header: {
        "Content-Type": "application/json;charset=UTF-8",
      }
    }, {
      loading: true
    })
  }

  // 获得老师列表
  getList(body) {
    return this.http({
      method: 'get',
      url: '/getList',
      body
    }, {
      loading: true
    });
  }
}

export default new StudentService();